
public class Cana {

	protected int x;
	protected int y;
	
	public Cana(int x,int y){
		this.x = x;
		this.y = y;
	}
	
	public int getX(){
		return x;
	}
	
	public void setX(int x){
		this.x = x;
	}
	public int getY(){
		return y;
	}
	
	public void setY(int y){
		this.y = y;
	}
	
	public String toString(){
		return "Starea : Cana1 : "+x+" litri, Cana2 : "+y+" litri";
	}
	public boolean equals(Cana a){
		boolean r = false;
		if(a.x == this.x && a.y == this.y)
			r = true;
		return r;
	}
	
	
}
